//
//  PagePrompt.m
//  SecretAlbums
//
//  Created by BabyFinancial on 15/8/19.
//  Copyright (c) 2015年 BabyFinancial. All rights reserved.
//

#import "PagePromptView.h"

@interface PagePromptView ()

@end

@implementation PagePromptView

- (instancetype)init
{
    if (self = [super init]) {
        self.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.3f];
        
        self.titleLabel = [UILabel new];
        self.titleLabel.font = [UIFont systemFontOfSize:18.0f];
        self.titleLabel.textColor = [UIColor whiteColor];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        
        [self addSubview:self.titleLabel];
    }
    
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.layer.masksToBounds = YES;
    self.layer.cornerRadius = self.bounds.size.height/2;
    
    self.titleLabel.frame = self.bounds;
}

@end
